package com.miku.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分表
 * @TableName credit
 */
@TableName(value ="credit")
public class Credit implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 创建用户Id
     */
     @ApiModelProperty(value = "创建用户Id")
    private Long userId;

    /**
     * 总积分
     */
     @ApiModelProperty(value = "总积分")
    private Long creditTotal;

    /**
     * 创建时间
     */
     @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
     @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 创建用户Id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 创建用户Id
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 总积分
     */
    public Long getCreditTotal() {
        return creditTotal;
    }

    /**
     * 总积分
     */
    public void setCreditTotal(Long creditTotal) {
        this.creditTotal = creditTotal;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 是否删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 是否删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}
